\hypertarget{a00058}{}\section{E\+:/knet-\/git/knet/knet/framework.h 文件参考}
\label{a00058}\index{E\+:/knet-\/git/knet/knet/framework.\+h@{E\+:/knet-\/git/knet/knet/framework.\+h}}
{\ttfamily \#include \char`\"{}framework\+\_\+api.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}framework\+\_\+config.\+h\char`\"{}}\\*
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{a00058_ac31f510b72c39d3b0611b9500789577b_ac31f510b72c39d3b0611b9500789577b}{acceptor\+\_\+cb} (\hyperlink{a00056_a3b7e82599367eade261456f60ebe2cd9_a3b7e82599367eade261456f60ebe2cd9}{kchannel\+\_\+ref\+\_\+t} $\ast$channel, \hyperlink{a00056_a2fd2faf971268f5b682ab375c455f7c9_a2fd2faf971268f5b682ab375c455f7c9}{knet\+\_\+channel\+\_\+cb\+\_\+event\+\_\+e} e)
\begin{DoxyCompactList}\small\item\em 事件channel\+\_\+cb\+\_\+event\+\_\+accept处理函数 \end{DoxyCompactList}\item 
\hyperlink{a00056_abd3f964265beb2f8984e76f44fb5ea33_abd3f964265beb2f8984e76f44fb5ea33}{kloop\+\_\+balancer\+\_\+t} $\ast$ \hyperlink{a00058_a5bda21127c93214014579d21f6efd643_a5bda21127c93214014579d21f6efd643}{knet\+\_\+framework\+\_\+get\+\_\+balancer} (\hyperlink{a00056_a3195a3be35782fc1efb920c811be111d_a3195a3be35782fc1efb920c811be111d}{kframework\+\_\+t} $\ast$f)
\begin{DoxyCompactList}\small\item\em 获取负载均衡器 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00058_ac31f510b72c39d3b0611b9500789577b_ac31f510b72c39d3b0611b9500789577b}{}\index{framework.\+h@{framework.\+h}!acceptor\+\_\+cb@{acceptor\+\_\+cb}}
\index{acceptor\+\_\+cb@{acceptor\+\_\+cb}!framework.\+h@{framework.\+h}}
\subsubsection[{acceptor\+\_\+cb}]{\setlength{\rightskip}{0pt plus 5cm}void acceptor\+\_\+cb (
\begin{DoxyParamCaption}
\item[{{\bf kchannel\+\_\+ref\+\_\+t} $\ast$}]{channel, }
\item[{{\bf knet\+\_\+channel\+\_\+cb\+\_\+event\+\_\+e}}]{e}
\end{DoxyParamCaption}
)}\label{a00058_ac31f510b72c39d3b0611b9500789577b_ac31f510b72c39d3b0611b9500789577b}


事件channel\+\_\+cb\+\_\+event\+\_\+accept处理函数 


\begin{DoxyParams}{参数}
{\em channel} & 监听管道，kchannel\+\_\+ref\+\_\+t实例 \\
\hline
{\em e} & 管道事件 \\
\hline
\end{DoxyParams}
\hypertarget{a00058_a5bda21127c93214014579d21f6efd643_a5bda21127c93214014579d21f6efd643}{}\index{framework.\+h@{framework.\+h}!knet\+\_\+framework\+\_\+get\+\_\+balancer@{knet\+\_\+framework\+\_\+get\+\_\+balancer}}
\index{knet\+\_\+framework\+\_\+get\+\_\+balancer@{knet\+\_\+framework\+\_\+get\+\_\+balancer}!framework.\+h@{framework.\+h}}
\subsubsection[{knet\+\_\+framework\+\_\+get\+\_\+balancer}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kloop\+\_\+balancer\+\_\+t}$\ast$ knet\+\_\+framework\+\_\+get\+\_\+balancer (
\begin{DoxyParamCaption}
\item[{{\bf kframework\+\_\+t} $\ast$}]{f}
\end{DoxyParamCaption}
)}\label{a00058_a5bda21127c93214014579d21f6efd643_a5bda21127c93214014579d21f6efd643}


获取负载均衡器 


\begin{DoxyParams}{参数}
{\em f} & kframework\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kloop\+\_\+balancer\+\_\+t实例 
\end{DoxyReturn}
